﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Ec_System.Models.Web;
using Ec_System.Cache.Web;

namespace Ec_System.Facade.Web
{
    public class AdRecommendFacade
    {
        AdRecommendCache adRecommendCache = new AdRecommendCache();
        /// <summary>
        /// 获取首页广告信息
        /// </summary>
        /// <param name="key"></param>
        /// <returns></returns>
        public List<AdRecommendData> Index_Home_Index
        {
            get
            {
                return adRecommendCache.GetAdRecommendByKey("Home/Index");
            }
        }

        /// <summary>
        /// 获取用户注册页面的广告信息
        /// </summary>
        public List<AdRecommendData> GetUserRegPageADImage
        {
            get
            {
                return adRecommendCache.GetAdRecommendByKey("Cumstomer/RegSuccess");
            }
        }

        /// <summary>
        /// 获取用户登录页面的广告信息
        /// </summary>
        public List<AdRecommendData> GetUserLoginPageAdInfo
        {
            get
            {
                return adRecommendCache.GetAdRecommendByKey("Cumstomer/UserLogin");
            }
        }
    }
}
